package com.macro.mall.tiny.modules.oms.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author Tyrone
 * @date 2024/10/26 01:55
 */
@Data
public class QueryOmsOrderDTO {
    @ApiModelProperty("分页参数")
    @TableField(exist = false)
    private Integer pageNum;

    @ApiModelProperty("分页参数")
    @TableField(exist = false)
    private Integer pageSize;

    @ApiModelProperty("订单创建时间开始")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date createTimeStart;

    @ApiModelProperty("订单创建时间结束")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date createTimeEnd;

    @ApiModelProperty("商品名称")
    private String goodName;

    @ApiModelProperty("订单状态 0待支付 1已支付 2支付失败 3已失效")
    private Integer status;

    @ApiModelProperty("用户openId 前台接口不用传递")
    private String openId;

    @ApiModelProperty("订单id")
    private String orderId;
}
